package cn.slipi.provider.controller;

import cn.slipi.provider.biz.PayBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 订单支付
 */
@RestController
@RequestMapping("/pay")
public class PayController {

    @Autowired
    private PayBiz payBiz;

    @RequestMapping("/doPay")
    public String doPay(@RequestParam("orderNo") String orderNo) {
        return this.payBiz.doPay(orderNo);
    }

}
